package org.xiyinjihe.platform.service;

import org.xiyinjihe.platform.po.User;
import org.xiyinjihe.platform.po.Visit;
import org.xiyinjihe.platform.po.VisitWithBLOBs;
import org.xiyinjihe.platform.po.WxUserInfo;

public interface UserService {

    User saveUserInfo(WxUserInfo userInfo);

    void saveUserToken(Long userId, String token);

    boolean isTokenValidate(String token);

    void setUserInfo(long userId, String name, String buddhistName, Boolean hasAsk);

    User getUserInfo(long userId);

    long saveVisit(VisitWithBLOBs visit);
}
